-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chore/update to jest 29 in suite #8726
Conversation
0437324
to
aafcc5a
Compare
8b1a77e
to
fa0f912
Compare
00fe842
to
39d22b6
Compare
@@ -15,7 +15,7 @@ | |||
"translations:list-duplicates": "yarn tsx ../suite-data/src/translations/list-duplicates.ts", | |||
"translations:list-unused": "yarn tsx ../suite-data/src/translations/list-unused.ts", | |||
"type-check": "tsc --build tsconfig.json", | |||
"test:unit": "jest", | |||
"test:unit": "jest --version && jest", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add --version
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because I am interested in this information as long as there are multiple versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not update all of them in this PR? :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do it if you have time, will be appreciated
6ac352e
to
a39b491
Compare
@@ -214,9 +214,6 @@ const actionCallback = ( | |||
}; | |||
|
|||
describe('useSendForm hook', () => { | |||
beforeEach(() => { | |||
jest.setTimeout(30000); // action sequences takes time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe leaving this one to avoid flakiness. I had this test failing few times locally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forcepushed
a39b491
to
64ee0af
Compare
a39b491 - this one is funny. Looks at this run all the tests are marked "PASSED" but unit tests in suite package still exit with non-zero code. Interestingly, it never happens on my machine (seems to be linux related). On my machine, I am seeing those error logs but tests exit with 0. I thought myself it might be a good idea to fix it actually and the fix I am proposing is not allowing multiple calls to db before it is really migrated but I'll post the fix in another PR. Here, as a workaround, I only initiate db in the start of the test.
part of #6025